@ECHO OFF

REM **********************************************************************
REM rebuild menu struct, convert osd reource
REM 
REM Double click this batch file or use command as below:
REM
REM     menu.bat
REM 
REM                                                               By Joe
REM **********************************************************************

set DOWNLOAD=.\download
set RES=.\resource
set INC=.\app\include\app

REM FONT Height, should be 32, 24 or 16
set FONT=32

.\exe\menu.exe %INC%\app_menu_res.h .\app\app_menu\app_menu_tab.c id=1528 macro=1

.\exe\font.exe %INC%\chinese_s.txt
.\exe\font.exe %INC%\chinese_t.txt

.\exe\IconToBmp.exe %RES%\Icon%FONT%x%FONT% %INC%

.\exe\BmpToFont.exe %INC%\english_%FONT%.bmp %RES%\english.sfn 0x4000 DBC2DBC_%FONT%
.\exe\BmpToFont.exe %INC%\icon.bmp %RES%\icon.sfn 0x8000 SBC2DBC_%FONT%
.\exe\BmpToFont.exe %INC%\chinese_s_%FONT%.bmp %RES%\chinese_s.sfn 0x4000 SBC2DBC_%FONT%
.\exe\BmpToFont.exe %INC%\chinese_t_%FONT%.bmp %RES%\chinese_t.sfn 0x4000 SBC2DBC_%FONT%

COPY %RES%\english.sfn %DOWNLOAD%\A\english.sfn
COPY %RES%\icon.sfn %DOWNLOAD%\A\icon.sfn
COPY %RES%\chinese_s.sfn %DOWNLOAD%\A\chinese_s.sfn
COPY %RES%\chinese_s_1.sfn %DOWNLOAD%\A\chinese_s_1.sfn
COPY %RES%\chinese_t.sfn %DOWNLOAD%\A\chinese_t.sfn
COPY %RES%\chinese_t_1.sfn %DOWNLOAD%\A\chinese_t_1.sfn

COPY %INC%\string_cs.res %DOWNLOAD%\A\
COPY %INC%\string_ct.res %DOWNLOAD%\A\
COPY %INC%\string_en.res %DOWNLOAD%\A\
